package com.ty.service.impl;
import com.ty.bean.Loan;

import com.ty.common.bean.PageBean;
import com.ty.mapper.LoanMapper;
import com.ty.query.LoanCustomerQuery;
import com.ty.service.LoanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class LoanServiceImpl implements LoanService {
    @Autowired
    LoanMapper loanMapper;


    @Override
    public PageBean queryByMap(LoanCustomerQuery query) {
        return loanMapper.query(query);
    }


    @Override
    public int save(Loan loan) {
        return loanMapper.save(loan);
    }


}
